Skip to content

feat: CLAUDE.md 注入部を最終縮小(#119、v0.69.0)#135

Merged
okash1n merged 1 commit into
mainfrom
issue/119-claudemd-slim
Jun 12, 2026
Merged

feat: CLAUDE.md 注入部を最終縮小(#119、v0.69.0)#135
okash1n merged 1 commit into
mainfrom
issue/119-claudemd-slim

Conversation

@okash1n

@okash1n okash1n commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

概要

LLM 性能監査計画 #121 の P4-13(#119)。配布 CLAUDE.md の kit 注入部(base + partials)の最終縮小。Fable 5 分類器対策(#76 / v0.54.0)と同方向の常時注入削減で、最大構成の合成 kit セクションは約 34% 縮小(ja: 2360 → 1557 bytes)。

変更内容

  • 「/clear を活用」行削除: /clear はユーザーコマンドでモデルは実行できず、auto-compact 標準装備の現行では情報量ゼロ
  • Conventional Commits 条件付き化: 「既存規約があればそれに従い、なければ CC」に書換(rules/git-workflow.md と整合。scenario テストが依存する 'Conventional Commits' フレーズは維持)
  • Spec Kit ブロックの feature 化: base 直書き 4 行(全プロファイル常時注入)を {{FEATURE:spec-kit}} + INSTALL_COMMANDS ゲートの 1 行 partial に。minimal では注入されず、マーカー共存規則・constitution 優先順位は commands/spec-kit-init.md に集約(実在確認済み)
  • web-content-extraction partial 縮小: harness が標準注入する skill description / コマンド一覧と重複する 2 行を削除し、「生 HTML を直接読まない」ポリシー 1 行のみに(INSTALL_SKILLS ゲートは維持)
  • codex partial 書換: 「大きめのコード生成・複数ファイル変更・テスト作成等は Codex へ」という旧世代能力差前提のルーティングを、「クロスモデル独立視点のレビュー + ユーザー明示依頼時の rescue」に縮小。検証・統合ガードは維持

検証

  • unit 342/342 / scenarios 44 Pass + 1 Skip / shellcheck green
  • context-budget: 注入合計 28/60 行(en/ja とも)
  • probe(分類器リスク評価): 最大構成合成で純減を確認(注入テキスト累積が発火要因のため、リスクは低下方向)
  • 内部レビュー(code-reviewer agent): critical 1 件「実装が CHANGELOG と乖離」→ probe 時の git stash の pop 漏れが原因で、復元して全変更が揃っていることを確認。spec-kit partial の ja/en 同等性・参照集約先の実在・sed 依存テストの成立はレビューで確認済み

Closes #119

- 「/clear を活用」行削除(モデルには実行不能な旧世代 babysitting)
- Conventional Commits を既存規約優先の条件付きに(rules/git-workflow と整合)
- Spec Kit ブロックを {{FEATURE:spec-kit}} + INSTALL_COMMANDS ゲートの partial 1 行へ
- web-content-extraction partial を harness 標準注入と重複しないポリシー 1 行に縮小
- codex partial の旧能力前提タスクルーティングをクロスモデルレビュー + 明示依頼時 rescue に縮小
- 最大構成の合成 kit セクションは約 34% 縮小(分類器対策 #76 と同方向の純減)

Closes #119
Copilot AI review requested due to automatic review settings June 12, 2026 03:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces the always-injected (base + partials) CLAUDE.md kit-managed section to lower context tax while keeping behaviorally important guidance and maintaining scenario-test compatibility.

Changes:

  • Removes the /clear “long sessions” line and makes the Conventional Commits rule conditional on existing repo conventions (keeping the literal “Conventional Commits” phrase for scenario tests).
  • Moves the Spec Kit guidance from always-on base text to a {{FEATURE:spec-kit}} marker + INSTALL_COMMANDS-gated partial injection.
  • Shrinks the web-content-extraction partial to only the “don’t analyze raw HTML” policy line; updates codex-plugin partial text to focus on cross-model review/rescue use.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/deploy.sh Adds spec-kit feature injection gated by INSTALL_COMMANDS during CLAUDE.md build.
i18n/ja/CLAUDE.md.base Removes /clear + always-on Spec Kit block; rewrites commit-style guidance; adds {{FEATURE:spec-kit}}.
i18n/en/CLAUDE.md.base English equivalent of the base slimming and feature marker changes.
i18n/ja/partials/spec-kit.md New minimal Spec Kit optional section content (JA).
i18n/en/partials/spec-kit.md New minimal Spec Kit optional section content (EN).
i18n/ja/partials/web-content-extraction.md Removes redundant command list + SKILL.md reference, keeps the core policy (JA).
i18n/en/partials/web-content-extraction.md Same partial slimming as JA (EN).
features/codex-plugin/CLAUDE.md.partial.ja Rewrites delegation guidance to cross-model review + explicit rescue only (JA).
features/codex-plugin/CLAUDE.md.partial.en Same codex guidance rewrite (EN).
CHANGELOG.md Adds the 0.69.0 entry describing the CLAUDE.md injection slimming changes.

Comment thread lib/deploy.sh
@@ -510,6 +510,11 @@ build_claude_md_to_file() {
cp -a "$base" "$out"

# Web content extraction standard rule — only when the skill is installed
@okash1n okash1n merged commit d6c4d4e into main Jun 12, 2026
12 checks passed
@okash1n okash1n deleted the issue/119-claudemd-slim branch June 12, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P4-13] CLAUDE.md 注入部(base + partials)の最終縮小

2 participants